package com.xuecheng.content.api;

import com.xuecheng.content.model.dto.RecommendWorkDto;
import com.xuecheng.content.service.RecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/recommend")
public class RecommendController {

    @Autowired
    private RecommendService recommendService;

    @GetMapping("/works")
    public List<RecommendWorkDto> recommendWorks() {
        String userId = "50";
        return recommendService.recommendWorks(Long.valueOf(userId));
    }
} 